home *** CD-ROM | disk | FTP | other *** search
/ TOS Silver 2000 / TOS Silver 2000.iso / musik / MIDIFP21 / SOURCES / INCLUDE / GRAPHICS.PIF < prev    next >
Encoding:
Text File  |  1996-06-30  |  2.3 KB  |  60 lines

  1. /**************************************************************
  2. *
  3. *                GRAPHICS.PIF
  4. *
  5. **************************************************************/
  6.  
  7. /***************/
  8. void draw_note /*
  9. ****************/
  10. (
  11.     int handle,     /* VDI workstation handle */
  12.     int *points,    /* points[0]:     x-value of 1. corner
  13.                        points[1]:     y-value of 1. corner
  14.                        points[2]:     x-value of 2. corner
  15.                        points[3]:     y-value of 2. corner */
  16.     int type,       /* see below */
  17.     int style,         /* fill style */
  18.     int color        /* fill    color */
  19. ) ;
  20.  
  21. /******** note type is a set of the following attributes *****/
  22.  
  23. #define HEAD_LINE      0x0001   /* note head marked with a line */
  24. #define TAIL_LINE      0x0002   /* note tail marked with a line */
  25. #define HEAD_TRI       0x0004   /* note head marked with a triangle */
  26. #define TAIL_TRI       0x0008   /* note tail marked with a triangle */
  27. #define BODY_RECT      0x0010   /* note body is a rectangle */
  28. #define BODY_ELLIP     0x0020   /* note body is an ellipse */
  29. #define BODY_FRONT     0x0100   /* note body is in foreground */
  30. #define HEAD_CUT       0x1000   /* points[0] in middle of note body */
  31. #define TAIL_CUT       0x2000   /* points[2] in middle of note body */
  32.  
  33. /* other attributes may follow ... */
  34.  
  35.  
  36. typedef enum {behind, between} MARK_MODE ;
  37.  
  38. /****************/
  39. void draw_lines /*
  40. *****************/
  41. (
  42.     int handle,             /* VDI workstation handle */
  43.     char number,            /* number of lines to be drawn */
  44.     char first_marked,         /* first line with special marking */
  45.     char d_marked,             /* special marking each d_marked lines */
  46.     MARK_MODE mode,         /* where to place rectangle marks */
  47.     int styles[12],         /* styles to be used after a special line */
  48.     int colors[12],         /* colors to be used after a special line */
  49.     char first_number,      /* number (text) for first special line */
  50.     int number_dots,        /* of special line, no dots if -1 */
  51.     int dx_text,             /* text (number) offset from x_start on */
  52.     int dy_text,            /* text (number) offset from y_start on */
  53.     int x_start,             /* of first line */
  54.     int y_start,            /* of first line */
  55.     int x_end,                 /* of first line */
  56.     int y_end,                /* of first_line */
  57.     float dx,                 /* distance of succeeding lines */
  58.     float dy                /* distance of succeeding lines */
  59. ) ; 
  60.